import { VIEW_TABLE_COLUMNS } from './actionPage';

export const INCOMPLETE_FORM_ITEMS = [
  {
    label: '开发品类',
    prop: 'categoryPath',
    type: 'slot',
    slotName: 'category'
  },
  {
    label: '开发品牌',
    prop: 'brandName'
  },
  {
    label: '开发区域',
    prop: 'devAreaName'
  },
  {
    label: '开发人',
    prop: 'developerName'
  },
  {
    label: '开发部门',
    prop: 'devDeptName'
  },
  {
    label: '开发计划时间',
    prop: 'planTimeStr'
  },
  {
    label: '计划名称',
    prop: 'planName'
  },
  {
    label: '开发计划说明',
    prop: 'note'
  },
]

export const COMPLETE_FORM_ITEMS = [
  ...INCOMPLETE_FORM_ITEMS,
  {
    label: '开发结果',
    prop: 'result'
  },
  {
    label: '供应商考察报告',
    prop: 'supplierInspectionNosStr',
    type: 'slot',
    slotName: 'supplierInspection'
  },
  {
    label: '商品准入单据单号',
    prop: 'productAccessRecordNosStr',
    type: 'slot',
    slotName: 'productAccessRecord'
  },
  {
    label: 'SPU新增SKU单据号',
    prop: 'spuAddSkuRecordNosStr',
    type: 'slot',
    slotName: 'spuAddSkuRecord'
  },
  {
    label: '多供进价单据单号',
    prop: 'addMultiSuppliesRecordNosStr',
    type: 'slot',
    slotName: 'addMultiSuppliesRecord'
  },
  {
    label: '新增销售区域单据单号',
    prop: 'addSaleAreaRecordNosStr',
    type: 'slot',
    slotName: 'addSaleAreaRecord'
  },
]

export const FINISH_VIEW_TABLE_COLUMNS = [
  {
    title: '是否取消',
    key: 'cancelFlagStr'
  },
  ...VIEW_TABLE_COLUMNS
]

export const OA_VIEW_FORM_ITEMS = [
  {
    label: '开发品类',
    prop: ['categoryPath', 'categoryPathSet'],
    type: 'slot',
    slotName: 'category'
  },
  ...INCOMPLETE_FORM_ITEMS.slice(1)
]
